<script language="javascript">

function view_member() {		
	var member=this.document.form_registration_validation.member.value;
	
	if(member!='') {
		pop('{link_view_member}'+member+'&fen=pop','600','500');
	}
}
</script>
<h1>{L_title}
<!-- OPTION value_name -->
: {value_firstname} {value_name}
<!-- END OPTION value_name -->
</h1>

<div id="action"><a href="{link_list}" title="{L_back_list}">{L_back_list}</a></div>
				  
<form name="form_registration_validation" action="{form_action}" method="post">

<!-- OPTION erreur -->
<div id="erreur">
<p class="erreur-title">{L_erreur}</p>
<ol class="erreur">  
<!-- LOOP erreur -->
<li>{message}</li>
<!-- END LOOP erreur -->
</ol>

<!-- OPTION show_confirm_mail -->
<div class="button"><input name="confirm_mail" type="radio" value="1" /> {L_yes}
<input name="confirm_mail" type="radio" value="0" checked="checked" /> {L_no}
<input type="submit" name="submit" value="{L_valider}" />
</div>
<!-- END OPTION show_confirm_mail -->

</div>
<!-- END OPTION erreur -->

<!-- OPTION L_message -->
<p class="message">{L_message}</p>
<!-- END OPTION L_message -->


<!-- OPTION show_form -->
<p class="field_required">* {L_field_required}</p>

<p>{L_date_registration} : {value_date_registration}</p>
<input type="hidden" name="date_registration" value="{value_date_registration}" />
  <table>
    <tr> 
      <th class="field_required">{L_name} *</th>
      <td><input name="name" type="text" value="{value_name}" size="40" /></td>
    </tr>
    <tr>
      <th class="field_required">{L_firstname} * </th>
      <td><input name="firstname" type="text" value="{value_firstname}" size="40" /></td>
    </tr>
    <tr>
      <th>{L_sex}</th>
      <td>
	  <!-- LOOP sex -->
	  <input name="sex" type="radio" value="{id}" {checked} /> {name}
	  <!-- END LOOP sex -->	  </td>
    </tr>
    <tr>
      <th valign="top">{L_date_birth}</th>
      <td><input name="date_birth" type="text" value="{value_date_birth}" size="10" maxlength="10" />
        {L_format_date}</td>
    </tr>
    <tr>
      <th>{L_email}*</th>
      <td><input name="email" type="text" value="{value_email}" size="40" /></td>
    </tr>
  <tr>
    <th>{L_login}*</th>
    <td><input name="login_member" type="text" id="login_member" value="{value_login}" /></td>
  </tr>
  <tr>
    <th>{L_pass}</th>
    <td>********<input name="pass_member" type="hidden" id="pass_member" /></td>
  </tr>
   <tr> 
     <th>{L_avatar}</th>
     <td><input name="avatar" type="text" value="{value_avatar}" size="40"onfocus="show_image('divavatar','img_avatar',this.value);" /> <a href="#" onclick="pop('{link_choose_avatar}','750','600');" class="choose_image">{L_choose_image}</a>
	  <div id="divavatar" style="display:none">	  
	  <img src="{value_avatar}" id="img_avatar" />	  </div>	  </td>
   </tr>	  
  <tr>
    <th>{L_description}</th>
    <td><textarea name="description" cols="40" rows="5" id="description">{value_description}</textarea></td>
  </tr>
  <tr>
  	<th>{L_action}</th>
    <td>
	<p>{L_valid_registration}</p>
    <p><input type="radio" name="action" value="add" {checked_add} />{L_add_registration}<br />
	<span class="details">{L_add_registration_info}</span></p>
	<p><input type="radio" name="action" value="merge" {checked_merge} />
	{L_merge_registration}
	<select name="member">
	<option value="">{L_choose_member}</option>
	<!-- LOOP member -->
	<option value="{id}" {selected}>{firstname} {lastname} - {email}</option>	
	<!-- END LOOP member -->
	</select>
	<a href="javascript:void(0)" onclick="view_member();">{L_view_member}</a>
	<br /><span class="details">{L_merge_registration_info}</span></p>
	<p>
	<input type="radio" name="action" value="refuse" {checked_refuse} />	{L_refuse_registration}<br />
	<span class="details">{L_refuse_registration_info}</span></p>
   </td>
  </tr>
</table>

 <div class="button"><input type="hidden" name="id" value="{value_id}" />
   <input type="submit" name="submit" value="{L_valider}" />
 </div>
<!-- END OPTION show_form -->
</form>